<?php
    session_start();
	$username=$_SESSION['username'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.6.3.min.js"></script>
<script type="text/javascript">
$(function(){	
	//顶部导航切换
	$(".nav li a").click(function(){
		$(".nav li a.selected").removeClass("selected")
		$(this).addClass("selected");
	})	
})	
</script>

</head>
<body style="background:url(images/topbg.gif) repeat-x;">

    <div class="topleft">
    <a href="#" target="_parent"><img src="images/2.png" title="系统首页" /></a>
    </div>
        
    <ul class="nav">
    <li><a href="select_shouzhong.php" target="right" class="selected"><img src="images/icon01.png" title="受众列表" /><h2>受众列表</h2></a></li>
    <li><a href="select_group.php" target="right"><img src="images/icon02.png" title="群列表" /><h2>群列表</h2></a></li>
    <li><a href="select_user.php"  target="right"><img src="images/icon03.png" title="模块设计" /><h2>用户列表</h2></a></li>
    <li><a href="insert_email.php"  target="right"><img src="images/icon04.png" title="常用工具" /><h2>邮件配置</h2></a></li>
    </ul>

	
	   
    <div class="topright">   
		<div class="user" style="margin-top:45px;">
		<span><?php echo $username;?></span>
		<a href="login.php" target="_parent"><i>退出</i></a>
		</div>
    </div>

</body>
</html>
<script>
 $(document).ready(function(){
	  
	  var username="<?php echo $_SESSION['username']; ?>";
	  if(username==null||username.length==0){
		  
		 window.top.location.href="../login.php";
	  }
	  
  })
  </script>

